package com.zahb.qadx.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Zdw on 2020/11/13 14:36
 * {
 * "id":91,
 * "businessId":1689,
 * "name":"煤矿井下电气作业初训",
 * "taskType":1,
 * "endTime":null,
 * "coverImage":"20200924/1600911604784355.jpg"
 * }
 */
public class TaskListBean implements Parcelable {

    private int id;
    private int businessId;
    private String name;
    private int taskType;
    private String endTime;
    private String coverImage;
    private String courseUserId;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getBusinessId() {
        return businessId;
    }

    public void setBusinessId(int businessId) {
        this.businessId = businessId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getTaskType() {
        return taskType;
    }

    public void setTaskType(int taskType) {
        this.taskType = taskType;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getCoverImage() {
        return coverImage;
    }

    public void setCoverImage(String coverImage) {
        this.coverImage = coverImage;
    }

    public String getCourseUserId() {
        return courseUserId;
    }

    public void setCourseUserId(String courseUserId) {
        this.courseUserId = courseUserId;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.id);
        dest.writeInt(this.businessId);
        dest.writeString(this.name);
        dest.writeInt(this.taskType);
        dest.writeString(this.endTime);
        dest.writeString(this.coverImage);
        dest.writeString(this.courseUserId);
    }

    public TaskListBean() {
    }

    protected TaskListBean(Parcel in) {
        this.id = in.readInt();
        this.businessId = in.readInt();
        this.name = in.readString();
        this.taskType = in.readInt();
        this.endTime = in.readString();
        this.coverImage = in.readString();
        this.courseUserId = in.readString();
    }

    public static final Parcelable.Creator<TaskListBean> CREATOR = new Parcelable.Creator<TaskListBean>() {
        @Override
        public TaskListBean createFromParcel(Parcel source) {
            return new TaskListBean(source);
        }

        @Override
        public TaskListBean[] newArray(int size) {
            return new TaskListBean[size];
        }
    };
}
